/**
 * AI解梦路由
 * 定义解梦相关的API端点
 */

const express = require('express');
const router = express.Router();

// 导入控制器
const {
  interpretDreamHandler
} = require('../controllers/dream.controller');

// 导入中间件
const {
  authenticateToken,
  optionalAuth
} = require('../middleware/auth.middleware');

// AI解梦端点
router.post('/interpret', optionalAuth, interpretDreamHandler);

module.exports = router;